import request from '@/utils/request'

// --------   近义词管理 --------

let BASE_ADDRESS = '/base/synonym'


//分页查询
export const getSynonymListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//删除
export const getSynonymRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove/${data}`,
        method: 'delete',

    })
}


//id查询
export const getSynonymeGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//修改
export const getSynonymEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}


//添加
export const getSynonymAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}

